﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserControl_Manager/MasterPage_Manager.Master"
    AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TMDT_Nhom1A.Manager.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="module_round_box_inner">
                <div class="module_round_box_inner2">
                    <div class="s5_mod_h3_1">
                        <div class="s5_mod_h3_2">
                            <h3 class="s5_mod_h3">
                                <span class="s5_h3_first">
                                    <asp:Label ID="lbCatalogue" runat="server" Text="Sản phẩm mới"></asp:Label></span>
                            </h3>
                        </div>
                    </div>
                    <asp:DataList ID="dllistnewproducts" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                        OnItemCommand="dllistnewproducts_ItemCommand" OnItemDataBound="dllistnewproducts_ItemDataBound">
                        <ItemTemplate>
                            <div style="text-align: center; width: 225px; cursor: default !importance">
                                <div class="s5_vm_name">
                                    <a>
                                        <asp:LinkButton ID="lbLinkToDetailOfNewProduct" CommandName="LinkToDetailOfNewProduct"
                                            CommandArgument='<%# Eval("ElectricDevice_ID") %>' runat="server"><%# Eval("ElectricDevice_ID") %></asp:LinkButton>
                                    </a>
                                    <%--<a href='<%# "ChiTietSanPham.aspx?ElectricDeviceID=" + Eval("ElectricDevice_ID") %>'>
                                <%# Eval("ElectricDevice_ID") %></a>--%>
                                    <br>
                                </div>
                                <div class="s5_vm_image">
                                    <a href='<%# "ChiTietSanPham.aspx?ElectricDeviceID=" + Eval("ElectricDevice_ID") %>'
                                        title='<%# Eval("ElectricDevice_Name") %>'>
                                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImagePath","../images/{0}") %>'
                                            ImageAlign="Middle" /></a>
                                </div>
                                <div style="clear: both">
                                </div>
                                <div class="s5_vm_price">
                                    <p>
                                        Số lượng :
                                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label></p>
                                    <div id="nondelOfNewProduct" runat="server">
                                        <p>
                                            Giá bán lẽ
                                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("RetailPrice") %>' Font-Bold="true"
                                                ForeColor="Red"></asp:Label>
                                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                        <p>
                                            Giá sĩ:
                                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("DealerPrice") %>' Font-Bold="true"
                                                ForeColor="Red"></asp:Label>
                                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </div>
                                    <div id="delOfNewProduct" runat="server" visible="false">
                                        <p>
                                            Giá bán lẽ: <del>
                                                <asp:Label ID="Label8" runat="server" Text='<%# Eval("RetailPrice") %>' Font-Bold="true"
                                                    ForeColor="Red"></asp:Label></del>
                                            <asp:Label ID="Label9" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                        <p>
                                            Giá sĩ:<del>
                                                <asp:Label ID="Label10" runat="server" Text='<%# Eval("DealerPrice") %>' Font-Bold="true"
                                                    ForeColor="Red"></asp:Label></del>
                                            <asp:Label ID="Label11" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </div>
                                    <p runat="server" id="pNonDiscountPriceOfNewProduct" visible="false">
                                        Giá coupon :
                                        <asp:Label ID="lbNonDiscountPriceOfNewProduct" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </p>
                                    <p runat="server" id="pPriceCouponOfNewProduct" visible="false">
                                        Giá coupon giảm :
                                        <asp:Label ID="lbDiscountPriceOfNewProduct" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                                        <asp:Label ID="Label7" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </p>
                                </div>
                                <div class="s5_vm_add_to_cart">
                                    <asp:ImageButton ID="ImageButton1" CommandName="Edit" ImageUrl="~/images/page-edit-icon.png"
                                        runat="server" />
                                    <asp:ImageButton ID="ImageButton2" CommandName="Delete" CommandArgument='<%# Eval("ElectricDevice_ID") %>'
                                        ImageUrl="~/images/delete-icon.png" runat="server" OnClientClick="if(!confirm('Bạn có muốn xóa sản phẩm này không ?')) return false;" />
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                </div>
            </div>
            <div class="module_round_box_inner">
                <div class="module_round_box_inner2">
                    <div class="s5_mod_h3_1">
                        <div class="s5_mod_h3_2">
                            <h3 class="s5_mod_h3">
                                <span class="s5_h3_first">
                                    <asp:Label ID="Label12" runat="server" Text="Sản phẩm mới cập nhật"></asp:Label></span>
                            </h3>
                        </div>
                    </div>
                    <asp:DataList ID="dllistnewupdateproducts" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                        OnItemCommand="dllistnewupdateproducts_ItemCommand" OnItemDataBound="dllistnewupdateproducts_ItemDataBound">
                        <ItemTemplate>
                            <div style="text-align: center; width: 225px; cursor: default !importance">
                                <div class="s5_vm_name">
                                    <a>
                                        <asp:LinkButton ID="lbLinkToDetail" CommandName="LinkToDetail" CommandArgument='<%# Eval("ElectricDevice_ID") %>'
                                            runat="server"><%# Eval("ElectricDevice_ID") %></asp:LinkButton>
                                    </a>
                                    <%--<a href='<%# "ChiTietSanPham.aspx?ElectricDeviceID=" + Eval("ElectricDevice_ID") %>'>
                                <%# Eval("ElectricDevice_ID") %></a>--%>
                                    <br>
                                </div>
                                <div class="s5_vm_image">
                                    <a href='<%# "ChiTietSanPham.aspx?ElectricDeviceID=" + Eval("ElectricDevice_ID") %>'
                                        title='<%# Eval("ElectricDevice_Name") %>'>
                                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImagePath","../images/{0}") %>'
                                            ImageAlign="Middle" /></a>
                                </div>
                                <div style="clear: both">
                                </div>
                                <div class="s5_vm_price">
                                    <p>
                                        Số lượng :
                                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label></p>
                                    <div id="nondel" runat="server">
                                        <p>
                                            Giá bán lẽ
                                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("RetailPrice") %>' Font-Bold="true"
                                                ForeColor="Red"></asp:Label>
                                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                        <p>
                                            Giá sĩ:
                                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("DealerPrice") %>' Font-Bold="true"
                                                ForeColor="Red"></asp:Label>
                                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </div>
                                    <div id="del" runat="server" visible="false">
                                        <p>
                                            Giá bán lẽ: <del>
                                                <asp:Label ID="Label8" runat="server" Text='<%# Eval("RetailPrice") %>' Font-Bold="true"
                                                    ForeColor="Red"></asp:Label></del>
                                            <asp:Label ID="Label9" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                        <p>
                                            Giá sĩ:<del>
                                                <asp:Label ID="Label10" runat="server" Text='<%# Eval("DealerPrice") %>' Font-Bold="true"
                                                    ForeColor="Red"></asp:Label></del>
                                            <asp:Label ID="Label11" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </div>
                                    <p runat="server" id="pNonDiscountPrice" visible="false">
                                        Giá coupon :
                                        <asp:Label ID="lbNonDiscountPrice" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </p>
                                    <p runat="server" id="pPriceCoupon" visible="false">
                                        Giá coupon giảm :
                                        <asp:Label ID="lbDiscountPrice" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                                        <asp:Label ID="Label7" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </p>
                                </div>
                                <div class="s5_vm_add_to_cart">
                                    <asp:ImageButton ID="ImageButton1" CommandName="Edit" ImageUrl="~/images/page-edit-icon.png"
                                        runat="server" />
                                    <asp:ImageButton ID="ImageButton2" CommandName="Delete" CommandArgument='<%# Eval("ElectricDevice_ID") %>'
                                        ImageUrl="~/images/delete-icon.png" runat="server" OnClientClick="if(!confirm('Bạn có muốn xóa sản phẩm này không ?')) return false;" />
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
